﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EnterPriseService.aspx.cs"
    Inherits="NJL.Web.AdminEnterprise.EnterPriseService" %>
<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="../Controls/WUCUservisitorLeft.ascx" TagName="WUCUservisitorLeft"
    TagPrefix="uc3" %>
<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="../Controls/UCenterHeader.ascx" TagName="UCenterHeader" TagPrefix="uc4" %>
<%@ Register Src="../Controls/UcenterFooter.ascx" TagName="UcenterFooter" TagPrefix="uc5" %>
<%@ Register Src="../Controls/WUCUserEnterPriseLeft.ascx" TagName="WUCUserEnterPriseLeft"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>我的服务</title>
    <script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
    <link href="../Styles/base1.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <link href="../Styles/manage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function textboxSelect() {
            var checkbox = document.getElementsByName("cbxSingle");
            for (var i = 0; i < checkbox.length; i++) {
                checkbox[i].checked = !checkbox[i].checked;
            }
        }
        function checkCheckboxState() {
            var checkbox = document.getElementsByName("cbxSingle");
            var hiddenId = "";
            var count = 0;
            for (var i = 0; i < checkbox.length; i++) {
                if (checkbox[i].checked == true) {
                    hiddenId += checkbox[i].value + ",";
                    count++;
                }
            }
            if (count == 0) {
                alert('请选择您要删除的记录')
                return false;
            }
            else {
                if (window.confirm("您确定要删除吗？")) {
                    hiddenId = hiddenId.substring(0, hiddenId.length - 1);
                    document.getElementById("<%=HSelectId.ClientID %>").value = hiddenId;
                }
                else {
                    return false;
                }
            }
        }
    </script>

</head>
<body class="managebg">
    <form id="form1" runat="server">
    <uc4:UCenterHeader ID="UCenterHeader1" runat="server"/>
    <div class="managecont02 cleanFlex" >
        <!--右侧内容-->
        <div class="f_right manageRight" id="right">
            <!--位置-->
            <div class="place">
                <span>欢迎您：<%=UserName %>&nbsp;&nbsp;[<a href="/Logout.aspx" class="green">退出登陆</a>]</span>
                <p>
                    您现在的位置是&nbsp;<strong><a href="Default.aspx">用户中心</a></strong>&gt;&gt;<strong>我的服务</strong></p>
            </div>
            <!--基本信息内容-->
            <div class="cleanFlex m_top_10">
            </div>
            <div>
                <!--标题-->
                <div class="titleManageRight">
                    <span><a href="AddEnterPriseService.aspx" class="write"><strong>写服务</strong></a></span>
                    <h2>
                        我的服务</h2>
                </div>
                <div class="cont cleanFlex">
                    <asp:Repeater ID="rptContent" runat="server" OnItemCommand="rptContent_ItemCommand">
                        <ItemTemplate>
                            <dl class="articleList">
                                <dt><span class="f_right"><a href="EditEnterPriseService.aspx?id=<%#Eval("ID") %>">修改</a>  <asp:LinkButton ID="lbtnDel" runat="server" CommandName="Del" CommandArgument='<%#Eval("ID") %>'
                                    OnClientClick="return confirm('您确定要删除吗？')">删除</asp:LinkButton> <a href="EnterPriseServiceReview.aspx?id=<%#Eval("ID") %>"> 查看评论 </a></span><h3>
                                    <a href="/Shop/ServiceDetails.aspx?sid=<%#Eval("ID") %>&id=<%=modelCompany.ID %>" target="_blank">
                                        <%#PageValidate.SqlText(Eval("SERVICE_NAME").ToString(),15)%></a><span><%#Eval("CREATE_DATE_TIME", "{0:yyyy-MM-dd HH:mm:ss}")%></span></h3>
                                </dt>
                      
                               
                            </dl>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <!--分页-->
                <div class="cleanFlex blank">
                </div>
                <div class="page cleanFlex m_top_10">
                    共
                    <asp:Literal ID="lit" runat="server"></asp:Literal>
                    条记录&nbsp;&nbsp;&nbsp;&nbsp; 共
                    <asp:Literal ID="litAllPage" runat="server"></asp:Literal>
                    页&nbsp;&nbsp;&nbsp;&nbsp; 第
                    <asp:Literal ID="litCurrentPage" runat="server"></asp:Literal>
                    页
                    <asp:LinkButton ID="lbtnFirst" runat="server" OnClick="lbtnFirst_Click">首页</asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="lbtnPrev" runat="server" OnClick="lbtnPrev_Click">上一页</asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="lbtnNext" runat="server" OnClick="lbtnNext_Click">下一页</asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="lbtnEnd" runat="server" OnClick="lbtnEnd_Click">末页</asp:LinkButton>
                    跳转到第
                    <asp:TextBox ID="txtPage" runat="server" Width="32px" MaxLength="8" Style="text-align: center" class="input"></asp:TextBox>&nbsp;页&nbsp;
                    <asp:Button ID="btnRir" runat="server" Text="确定" OnClick="btnRir_Click"  CssClass="greenBtn" onmouseover="this.className='greenBtnOver'"
                                                onmouseout="this.className='greenBtn'"/>
                </div>
            </div>
        </div>
        <uc1:WUCUserEnterPriseLeft ID="WUCUserEnterPriseLeft1" runat="server" />
        <div class="managecontbottom">
        </div>
    </div>
    <asp:HiddenField ID="HSelectId" runat="server" />
    <uc5:UcenterFooter ID="UcenterFooter1" runat="server" />
    </form>
</body>
</html>
